﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IDr_Ini_StruBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IDr_Ini_Stru;

        void Remove(IDr_Ini_Stru entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, STHPMS1.ICore.I_Entity.IEntity;


        /// <summary>
        /// 大中修结构组合厚度保存
        /// </summary>
        /// <param name="iniproj_Id"></param>
        /// <param name="Medi_Maintype"></param>
        /// <param name="dict"></param>
        void SaveThinkness(string iniproj_Id, int medi_Maintype, Dictionary<int, double> dict);

        /// <summary>
        /// 大中修材料保存
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="iniproj_Id"></param>
        /// <param name="hotmonth"></param>
        /// <param name="exetem"></param>
        /// <param name="annurain"></param>
        /// <param name="laymateList"></param>
        void SaveMaterials<T>(string iniproj_Id, string hotmonth, string exetem, string annurain, IEnumerable<T> laymateList)
            where T : IDr_Ini_Laymate;
    }
}
